<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;
class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        header("Location: manager.php");
        // //轮播推荐
        // $where['flag']='recommend';
        // $where['category_id']=15;
        // $where['ztsh']='1';
        // $lunbo = db("article")->where($where)->limit(5)->select();
        // //新闻列表
        // $newswhere['flag']='index';
        // $newswhere['category_id']=15;
        // $newswhere['ztsh']='1';
        // $newslist = db("article")->where($newswhere)->limit(3)->select();

        // //公告列表
        // $ggwhere['flag']='index';
        // $ggwhere['category_id']=14;
        // $ggwhere['ztsh']='1';
        // $ggslist = db("article")->where($ggwhere)->limit(4)->select();

        // //通知列表
        // $tzwhere['flag']='index';
        // $tzwhere['category_id']=16;
        // $tzwhere['ztsh']='1';
        // $tzlist = db("article")->where($tzwhere)->limit(4)->select();
        // $this->view->assign('lunbo',$lunbo);
        // $this->view->assign('newslist',$newslist);
        // $this->view->assign('ggslist',$ggslist);
        // $this->view->assign('tzlist',$tzlist);
        // return $this->view->fetch();
    }

}
